package com.sojson.util.qq;

import com.sojson.base.impl.BaseUtilDto;
import com.sojson.config.exception.bean.Status;

/**
 * WxBean对象
 * 
 * @author liu
 * @date 2020-09-03
 */
public class QqBean extends BaseUtilDto {

    /***/
    private static final long serialVersionUID = -7097710922022163250L;

    /** appId类似帐号 */
    private String appId;
    /** 网页授权接口调用凭证,注意：此access_token与基础支持的access_token不同 */
    private String accessToken;
    /** openid用户的唯一标识 */
    private String openid;
    /** unionid用户的唯一标识(多平台的唯一标识) */
    private String unionid;
    /** 页面路径 */
    private String url;
    /** 状态信息 */
    private Status status;

    public QqBean() {}

    /**
     * 成功返回
     * @param code
     */
    public QqBean(Integer code) {
        this(code, null);
    }

    /**
     * 返回失败
     * @param code
     * @param msg
     */
    public QqBean(Integer code, String msg) {
        this(new Status(code, msg));
    }

    public QqBean(Status status) {
        this.status = status;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

}